$(function(){
	var information={};//传给后台的json
	var value=[];
	var data=[];
	var childer2=[];  
	var childer=[];   
	selected_infor();
	cookiesouce();
	
function cookiesouce(){
	if( $.cookie("cookiesouce")!=null)
	{

		var str=$.cookie("cookiesouce");
		var cookieobject=$.parseJSON(str);
		var safetyPortId=cookieobject.Cookiefenkouid;
		var safetyPortName=cookieobject.Cookiefenkouname;
		
		var souceid=cookieobject.Cookiesouceid.split(",");
		var soucename=cookieobject.Cookiesoucename.split(",");
		var soucesuper=cookieobject.CookiesouceSuper.split(",");
		var html2='<optgroup id="s-1" label="&nbsp;历史记录"><option data-label="'+safetyPortName+'"  data-super=-1 value="'+safetyPortId+'">&nbsp;'+safetyPortName+'</option></optgroup>';
		var html='<optgroup id="s-1" label="&nbsp;历史记录"></optgroup>';
		for(var a=0;a<souceid.length-1;a++)
		{
			html+='<option data-label="'+soucename[a]+'"  data-super=-1 value="'+souceid[a]+'">&nbsp;'+soucename[a]+'</option>';

		}
		var tim=setTimeout(function(){
			$("#souceMut").prepend(html);
			$("#fenkMut").prepend(html2);
			/*changesouce();*/
		},1000);
		
	}
	
}

/*function changesouce(){
	$("#souceMut").on("change", function(e) { 
		var id=$("#souceMut").select2('val');
		if(mm(id))
		{
			id=YuXi.recursionSource.unique(id);
			$("#souceMut").val(id).trigger('change');
			
		}
		
	}) 


}*/
//数组重复值判断
function mm(a)
{
   return /(\x0f[^\x0f]+)\x0f[\s\S]*\1/.test("\x0f"+a.join("\x0f\x0f") +"\x0f");
}
	//文件上传按钮
 	var checkFlag={infor_where:false,pes:false,sort:false};
	$("#fileUp").click(function(){
		$("#loading").hide();
		$("#loadOk").hide();
	})
	$("#fileUp").on("change","#upfile-haoping",function(){
		fileup();
	})
	/*10-7*/
	$("#select-all").on('click',function(){		
		var check=$("input[name='isCheck']");
		$(check).each(function(){
			if(!$(this).is(":checked"))
			  $(this).click();
		});
	})
	$("#select-fan").on('click',function(){
		var check=$("input[name='isCheck']");
		$(check).each(function(){			
			  $(this).click();
		});
	})
	/*10-7*/
	
	$("#sure").click(function(){
		setSubmit();
	});
	
	//提交按钮，弹出提交模态框
	$("#submitInfo").click(function(){
		
		sure();	   
	});
	//所有数据，和上一层id

	function xxx(object,className){
		var type="";
		var name="";
		var flag="";
		if(className=="#treeTable1")
		{
			type="checkbox";
			name="sourceCheck";
			flag="name";
		}
		else
		{
			type="radio";
			name="safePort";
			flag="portName";
		}
		var a=[];
		var flag=0;
			var html="";
		var flaga={};
		
		function treeMenu(a){
		    this.tree=a||[];
		    this.groups={};
		};
		treeMenu.prototype={
		    init:function(superId){
		  
		        this.group();
		        return this.getDom(this.groups[superId]);
		    },
		    group:function(){
		    
		        for(var i=0;i<this.tree.length;i++){
		            if(this.groups[this.tree[i].superId]){
		                this.groups[this.tree[i].superId].push(this.tree[i]);
		            }else{
		                this.groups[this.tree[i].superId]=[];
		                this.groups[this.tree[i].superId].push(this.tree[i]);
		            }
		        }

		    },

		    getDom:function(a){
		    	
		    	
		        if(!a){return ''}
		       flag=0;
		        var html="";
		    
		    	if(a[0].superId==0)
		    	{
		    			/*$scope.sorce=a;//第一层结构
		    			//console.log($scope.sorce);*/
		    			for(var i=0;i<a.length;i++)
		    			{
		    				
		    				if(className=="#treeTable2")
		    				{
		    					html='<tr isChange=false id="'+a[i].id+'"   hasChild="hasChild" data-superid="'+a[i].superId+'" style="color:black;" ><td class="bianhao">'+(i+1)+'</td><td>'+a[i].portName+'</td><td><input data-name='+a[i].portName+' data-id='+a[i].id+' type='+type+' name='+name+'></td></tr>\n';		
		    				}
		    				else
		    				{
		    					html='<tr isChange=false id="'+a[i].id+'"   hasChild="hasChild" data-superid="'+a[i].superId+'" style="color:black;" ><td class="bianhao">'+(i+1)+'</td><td>'+a[i].name+'</td><td><input data-name='+a[i].name+' data-id='+a[i].id+' type='+type+' name='+name+'></td></tr>\n';		

		    				}
		    				$(className).append(html);
		    				
		    			}
		    			
		    			flag=1;
		    	}

		    	if(flag==0)
		    	{
		    			var length=a.length;
		    			var superid=0;
		    			for(var i=0;i<length;i++)
		    			{	
		    				superid=a[i].superId;
		    				if(isChilde(a[i].id,object))
		    				{ 
		    					
		    					if(className=="#treeTable2")
		    					{
		    						
		    					html+='<tr isChange=false id="'+a[i].id+'" hasChild="hasChild" pId="'+a[i].superId+'"   data-superid="'+a[i].superId+'" style="color:black;" ><td class="bianhao">'+(i+1)+'</td><td>'+a[i].portName+'</td><td><input data-name='+a[i].portName+' data-id='+a[i].id+' type='+type+' name='+name+'></td> </tr>\n';		
		    					}
		    					else
		    					{
		    						html+='<tr isChange=false id="'+a[i].id+'" hasChild="hasChild" pId="'+a[i].superId+'"   data-superid="'+a[i].superId+'" style="color:black;" ><td class="bianhao">'+(i+1)+'</td><td>'+a[i].name+'</td><td><input data-name='+a[i].name+' data-id='+a[i].id+' type='+type+' name='+name+'></td> </tr>\n';		
		    					}

		    				}  
		    				else
		    				{  			
		    					if(className=="#treeTable2")
		    					{
		    							html+='<tr isChange=false id="'+a[i].id+'" pId="'+a[i].superId+'"   data-superid="'+a[i].superId+'" style="color:black;" ><td class="bianhao">'+(i+1)+'</td><td>'+a[i].portName+'</td><td><input data-name='+a[i].portName+' data-id='+a[i].id+' type='+type+' name='+name+'></td></tr>\n';		
		    				
		    					}
		    					else
		    					{
		    						html+='<tr isChange=false id="'+a[i].id+'" pId="'+a[i].superId+'"   data-superid="'+a[i].superId+'" style="color:black;" ><td class="bianhao">'+(i+1)+'</td><td>'+a[i].name+'</td><td><input data-name='+a[i].name+' data-id='+a[i].id+' type='+type+' name='+name+'></td></tr>\n';		
		    				
		    					}
		    				}
		    				
		    				
		    				    
		    			}
		    				if(className=="#treeTable1")
		    				{
		    					childer.push({superid:superid,html:html});
		    				}
		    				else
		    				{
		    					childer2.push({superid:superid,html:html});
		    				}

		    			
		    		
		    		
		    			
		    	}
		    	 
		        for(var i=0;i<a.length;i++)
		        {
		           this.getDom(this.groups[a[i].id]);

		        }

	        /*html+='</optgroup>\n';*/

	       /* $("#"+id).append(html);*/
	        return html;
	    }
	   

	}
 var html=new treeMenu(object).init(0);

option(className);
}
	



//判断是否有子节点
function isChilde(id,object)
{
	for(var i=0;i<object.length;i++)
	{
		if(object[i].superId==id)
		{
			return true;
		}
	}
	return false;
}
	function option(className)
	{			
			var option = {
	                theme:'vsStyle',
	              
	                beforeExpand : function($treeTable, id) {

	            	var html="";
	                    //判断id是否已经有了孩子节点，如果有了就不再加载，这样就可以起到缓存的作用
	                    if ($('.' + id, $treeTable).length) { return; }
	            
	                   var index=$(className).find("tr").eq(id).attr("id");
	                   if(className=="#treeTable2")
		    			{
		                   for(var i=0;i<childer2.length;i++)
		                   {
		                   	if(id==childer2[i].superid)
		                   	{
		                   		html=childer2[i].html;
		                   	}
		                   }
		                 }
		                 else
		                 {
		                 	 for(var i=0;i<childer.length;i++)
		                   	{
		                   		if(id==childer[i].superid)
		                   		{
		                   			html=childer[i].html;
		                   		}
		                  	 }
		                 }
	                
	                     $treeTable.addChilds(html);
					},
					 onSelect : function($treeTable, id) {
	                    window.console && console.log('onSelect:' + id);
	                    
	                }


		}	
	
		$(className).treeTable(option);
	}


var x=1;	//向后台请求渠道信息
function space(superid,object)
{

	if(superid==0)
	{

		return 0;
	}
	for(var i=0;i<object.length;i++)
	{
		if(object[i].id==superid)
		{
			
			x=space(object[i].superId,object);
			
		}
	}
	return x+1;

}
var cookiesouce={};
function requestSource()
{	


	var url="getAllInfomationSource.do";//渠道地址
	var data={};
	var object={};
	var superId1=[];//第一层id
	YuXi.util.get(url,"null",function(data){
		object=data.object;
		 cookiesouce=data.object;
	xxx(object,"#treeTable1");
	
		
	},function(){});//请求数据



}

	//向后台提交附件，返回地址
	 function fileup (){
			$("#loading").show();
			 $("#loadOk").hide();
	    $.ajaxFileUpload({
	        type:"post",
	        secureuri:false,
	        dataType:"json",      
	        url:"/yuxi/userFileUp.do",
	        fileElementId:"upfile-haoping",
	        success:function(data, status){
	        	//console.log(data);
	        	information.appendix=JSON.stringify(data.addressList);
	        	$("#loading").hide();
	        	$("#loadOk").show();
	        	$("#fileValue").remove();
	        	var html='<input id="upfile-haoping" name="files" style="position:absolute; right:0; top:0; font-size:100px; opacity:0; filter:alpha(opacity=0);" type="file" value="浏览" />';
	        	$("#fileUp").append(html);
	        },
	        error:function(data){
	        	
	          
	        } 
	        
	      });
	    }





	



function addUser(user,id){
	var html= '<li><input type="checkbox"  data-id='+id+' value='+user+' name="Check">'+user+'</li>';
	$("#addRequest").find("ul").append(html);
}
 function queryUser(id){
	 var structId="structId="+id;
	 var url="getUserListByStruct.do";//获取部门下的角色
	 var data={};
	 var object={}; 
	 $(".selctUser").html("");
	 data=YuXi.util.get(url,structId,function(data){
		object=data.object;
		for(var i=0;i<object.length;i++)
		{	
			var html= '<li><input type="checkbox" data-id='+object[i].userId+' data-na='+object[i].userName+' name="isCheck">'+object[i].userName+'</li>';
			$(".selctUser").append(html);
		}
			
	},function(){});
 }
 

//向后台提交所有数据，确认提交。(调用此方法需要给json数据)
function requestSubmit(information)
{	
	/*console.log(JSON.stringify(information));
	return false;*/
	var url="addInformation.do";//提交地址
//	var data={};
	var object={};
	var cookieInfo={Cookiesouceid:information.Cookiesouceid,Cookiesoucename:information.Cookiesoucename,CookiesouceSuper:information.CookiesouceSuper,Cookiefenkouid:information.safetyPortId,Cookiefenkouname:information.safetyPortNames};
	YuXi.util.post(url,information,function(data){
		if(data.status){ 
			$("#successmodel").modal('show');
			//console.log("提交成功");
			  $.cookie("cookiesouce",JSON.stringify(cookieInfo),{ expires: 7 });
			  $.cookie("myData",null);
			window.location.href="addInfo.jsp?menuId=1";

		}else{
			//console.log("提交失败");
		}
	},function(){
		//console.log("提交失败");
	});
}

//去除换行 
function ClearBr(key) { 
key = key.replace(/<\/?.+?>/g,""); 
key = key.replace(/[\r\n]/g, ""); 
key = key.replace(/[\r\t]/g, "");
return key; 
}


//确认提交--获取页面值
function sure()
{	
	/*渠道*/

    var check=[];
    var sourceName=[];
    var personId=[];
    var personName=[];
   
    $(".select-data-user").each(function(){
    	//console.log("ID:"+$(this).attr("data-id")+$(this).html());
		personId.push($(this).attr("data-id"));
		personName.push($(this).html());
		
		
	})
	portId=$(".sele option:selected").val()+",";
	var sourceid="";
	var sourcename="";
	var souceSuper="";
	 sourceid=$("#souceMut").select2('val').join(",")+",";
	 for(var yy=0;yy<$("#souceMut").select2('val').length;yy++)
	 {
	 	var nameyy=$("#souceMut").select2('data')[yy].text;
	 	nameyy=$.trim(nameyy);
	 	sourcename=sourcename+nameyy+",";

	 }
	 information.Cookiesouceid=sourceid;
	 information.Cookiesoucename=sourcename;
	 var cookiefls=sourceid.split(",");
	 for(var xf=0;xf<cookiefls.length;xf++)
	 {
	 	for(var xd=0;xd<cookiesouce.length;xd++)
	 	{
	 		if(cookiefls[xf]==cookiesouce[xd].id)
	 		{
	 			souceSuper=souceSuper+cookiesouce[xd].superId+",";
	 		}
	 	}
	 }
	 information.CookiesouceSuper=souceSuper;
//--------------------------------------
	var sourceArray=sourceid.split(",");
	
	for(var j=0;j<sourceArray.length;j++)
	{
		var currs=YuXi.recursionSource.get(sourceArray[j])+",";
		sourceid+=currs;		
	}
	var arrayunqiue=[];
	arrayunqiue=YuXi.recursionSource.unique(sourceid.split(","));
	sourceid=arrayunqiue.join(",");
//----------------------------------------------

		information.informationSourceID=sourceid;//渠道
	    information.informationSourceNames=sourcename;

	    information.safetyPortId=$("#fenkMut").select2('val');//分口
	    information.safetyPortNames=$.trim($("#fenkMut").select2('data')[0].text);

	    //---------------------10.7修改始
	    if($(".pes option:selected").val()=="")
	    {
	    	myTool.alert({		
				title:"提示",
				context:"提交失败,分级不能为空。",
				isMask:true,
				callback:function(){
					}
				});
	    	return false;
	    }
	    else
	    {
	    	information.informationClassificationId=parseInt($(".pes option:selected").val());//分级
	   		information.informationClassificationNames=($(".pes option:selected").html());
	    }
	    if($(".sort option:selected").val()=="")
	    {
	    	myTool.alert({		
				title:"提示",
				context:"提交失败,分类不能为空。",
				isMask:true,
				callback:function(){
					}
				});
	    	return false;
	    }
	    else
	    {
	    	 information.informationSortId=($(".sort option:selected").val());//分类
	   		 information.informationSortNames=($(".sort option:selected").html());
	    }
	    //---------------------10.7修改终
	    
	   
	    /*10-7*/
	    information.informationProfile=$("#brie").text();//简介
		information.informationProfile=ClearBr(information.informationProfile);

	    information.mesure=$(".step").text();//措施
	    information.standard=$(".basic").text();//标准
	    information.informationConternt=$(".cont").text();//内容
	    /*10-7*/
	    information.inputPersonID=personId.join(",");//参与人
	    information.inputPerSonNames=personName.join(",");
	    
	    information.prisonId=$("#infor-where-select option:checked").val();
	    information.prisonName=$("#infor-where-select option:checked").attr("data-name");
	   //console.log(JSON.stringify(information));
	    if(!isNull(information.informationSourceID)){
	    	myTool.alert({		
				title:"提示",
				context:"提交失败,渠道不能为空。",
				isMask:true,
				callback:function(){
					}
				});

	    	YuXi.scrollbar.scroll("#resour");
	    	return false;
	    }
	     if(!isNull(information.safetyPortId)){
	    	myTool.alert({		
				title:"提示",
				context:"提交失败,分口不能为空。",
				isMask:true,
				callback:function(){
					}
				});

	    	YuXi.scrollbar.scroll("#resour");
	    	return false;
	    }
	   
	    if(!isNull(information.informationClassificationId)){
	    	$("#badmodal").modal('show');
	    	return false;
	    }
	    if(!isNull(information.informationSortId)){
	    	$("#badmodal").modal('show');
	    	return false;
	    }  
	    if(!isNull(information.informationProfile) || information.informationProfile=="" ){
	    	
	    	myTool.alert({		
				title:"提示",
				context:"提交失败,简介不能为空。",
				isMask:true,
				callback:function(){
					}
				});

	    	YuXi.scrollbar.scroll("#brie");
	    	return false;
	    }
	    if(!isNull(information.informationConternt) || information.informationConternt==""){
	    	myTool.alert({		
				title:"提示",
				context:"提交失败,内容不能为空。",
				isMask:true,
				callback:function(){
					} 
				});

	    	YuXi.scrollbar.scroll("#content");
	    	return false;
	    }
	   /* console.log(JSON.stringify(information));
	    return false;*/
	    $('#myModal').modal('show');
		
   
}
function setSubmit(){
	$('#myModal').modal('hide');
	requestSubmit(information);
}
//参与人搜索
function search()
{
	var search=$("#searchInsert").val();//需要查询的数据
	if(search!="")
	{
		requestSearch(search);
	}
}
//参与人选中后的确定按钮
function surePart()
{
	
	 var item=$(".ui-sortable .item");
     $("#node").find(".label1").html("");
     var pearson="";
     for(var i=0;i<item.length;i++)
     {
       firt=item[i].firstChild;
       if(i==item.length-1)
       {
         pearson+=firt.nextSibling.nodeValue;
       }
       else
       {
         pearson+=firt.nextSibling.nodeValue+",";

       }
       html="<span class='parsbox'><span  class='glyphicon glyphicon-user' aria-hidden='true'></span>"+firt.nextSibling.nodeValue+"&nbsp;&nbsp;</span></span>"
       $(".label1").append(html);
     }
     $('#myPart').modal('hide');
	
}



$("#save").click(function(){
	$("#saveModal").modal('show');
})


/*判断输入合法性*/
function isNull(str){
	if(str==null||str==""){
		return false;
	}else{
		return true;
	}
}



//向后台请求分口信息
function requestPort()
{	var url="getAllInformationPort.do";//分口地址
	var data={};
	var object={};
	data=YuXi.util.get(url,null,function(data){
		object=data.object;
		
			xxx(object,"#treeTable2");
		
	},function(){});//请求数据
	
}

requestPort();
requestSource();
requestSort();
requestClassification();//分级
//向后台请求分类信息
function requestSort()
{	//数据模拟
	var url="getAllInfomationSort.do";//分类地址
	var data={};
	var object={};
	data=YuXi.util.get(url,"null",function(data){
		object=data.object;
		//用data循环添加分类信息
		for(var i=0;i<object.length;i++)
		{
			var html="<option  value="+object[i].id+" >"+object[i].name+"</option>";
			$(".sort").append(html);
		}
		checkFlag.sort=true;
		addSelect('.sort',"");
	},function(){
		
	});//请求数据
	//checkFlag.
}
//向后台请求分级信息
function requestClassification()
{	
	var url="getAllInformationClassification.do";//分级地址
	var data={};
	var object={};
	data=YuXi.util.get(url,"null",function(data){
		object=data.object;
		//用data循环添加分口信息
		for(var i=0;i<object.length;i++)
		{
			var html="<option  value="+object[i].id+" >"+object[i].name+"</option>";
			$(".pes").append(html);
		}
		checkFlag.pes=true;
		addSelect('.pes',"");
	},function(){
		
	});//请求数据
	
}


function selected_infor(){
	var timer1=setInterval(function (){
		var value=$(".infor_where option:first").text();
		if(value!=null && value!=undefined){
			checkFlag.infor_where=true;
			addSelect('.infor_where',value);
			
			//alert();
		}
		if(fff.infor_where==true){
			window.clearInterval(timer1);
		}

	},1000);
}
var fff={sele:true,sort:false,pes:false};
function addSelect(className,value){
	var length=className.length;
	
	var newname=className.substring(1,length);
	var time=setInterval(function(){
		if(fff.sele==true && fff.sort==true && fff.pes==true)
		{

			clearInterval(time);
		}
		if(checkFlag[newname]==true)
		{
			$(className+" option").each(function(){
			if($(this).html()==value){
				$(this).attr("selected","selected");

				
				//--------------------------------------------------10.8
				 if(className==".pes")
				{
					$(".select2-selection__rendered").eq(2).attr("title",value);
					$(".select2-selection__rendered").eq(2).html(value);
				}
				else
				{
					$(".select2-selection__rendered").eq(0).attr("title",value);
					$(".select2-selection__rendered").eq(0).html(value);
				}
				//-----------------------------------------------------10.8
				fff[newname]=true;
			}
			});
		}
		
	},50);
	
}



	var cookieTime=setInterval(function(){

		cookie();

	},5000);
	var cookieTimeOut=setTimeout(function(){
		if( $.cookie("myData")!=null)
		{
			Wricookie($.cookie("myData"));
		}

	},1000);
	



	//cookie值获取和存储
	function cookie()
	{


		var check=[];
	    var sourceName=[];
	    var personId=[];
	    var personName=[];
	    var informationCookie={};
	    $(".select-data-user").each(function(){
	    	//console.log("ID:"+$(this).attr("data-id")+$(this).html());
			personId.push($(this).attr("data-id"));
			personName.push($(this).html());
		})
	/*	portId=$(".sele option:selected").val()+",";
		var sourceid="";
		var sourcename="";*/
		 
		/*sourceid=$("#souceMut").select2('val').join(",")+",";
		for(var yy=0;yy<$("#souceMut").select2('val').length;yy++)
		{
		 	var nameyy=$("#souceMut").select2('data')[yy].text;
		 	nameyy=$.trim(nameyy);
		 	sourcename=sourcename+nameyy+",";
		}


		informationCookie.appendix=information.appendix;//附件*/
/*		informationCookie.informationSourceID=sourceid;//渠道
	    informationCookie.informationSourceNames=sourcename;
	    informationCookie.safetyPortId=$("#fenkMut").select2('val');//分口
	    informationCookie.safetyPortNames=$.trim($("#fenkMut").select2('data')[0].text);

	    informationCookie.informationClassificationId=parseInt($(".pes option:selected").val());//分级
	   	informationCookie.informationClassificationNames=($(".pes option:selected").html());
 		informationCookie.informationSortId=($(".sort option:selected").val());//分类*/
	/*   	informationCookie.informationSortNames=($(".sort option:selected").html());*/
	   		 	    /*10-7*/
	    informationCookie.informationProfile=$("#brie").text();//简介
		informationCookie.informationProfile=ClearBr(informationCookie.informationProfile);

	    informationCookie.mesure=$(".step").text();//措施
	    informationCookie.standard=$(".basic").text();//标准
	    informationCookie.informationConternt=$(".cont").text();//内容
	    /*10-7*/
	    informationCookie.inputPersonID=personId.join(",");//参与人
	    informationCookie.inputPerSonNames=personName.join(",");
	    
	    informationCookie.prisonId=$("#infor-where-select option:checked").val();
	    informationCookie.prisonName=$("#infor-where-select option:checked").attr("data-name");

	
	    $.cookie("myData",JSON.stringify(informationCookie),{ expires: 7 });
	}




	function Wricookie(str)
	{
		
		var object=$.parseJSON(str);
		
		
		personName=object.inputPerSonNames.split(",");
	personId=object.inputPersonID.split(",");
			/*Allsourcename=object.informationSourceID.split(",");
		AllportName=object.safetyPortId;*/
	/*	//-----------------------------------10.8
		object.informationSourceNames=object.informationSourceNames.substring(0,object.informationSourceNames.length-1);
		YuXi.fenkouSourceUpdate.get(object.informationSourceID,object.safetyPortId);*/
		
		//----------------------------------------------------------10.8
	/*	addSelect(".pes",object.informationClassificationNames);
		addSelect(".sort",object.informationSortNames);*/
	
		for(var i=0;i<personName.length;i++){
			if(personName[i]!=""){
				var html="<span  class='parsbox'><span  class='glyphicon glyphicon-user' aria-hidden='true' ></span><span class='select-data-user' data-id="+personId[i]+">"+personName[i]+"</span>&nbsp;&nbsp;<span   class='glyphicon glyphicon-remove' aria-hidden='true'></span></span>"
		        $(".label1").append(html);
			}
			
		}
		$(".select2-selection__rendered").eq(2).attr("title"," ");
		$(".select2-selection__rendered").eq(2).html(" ");
		$(".select2-selection__rendered").eq(3).attr("title"," ");
		$(".select2-selection__rendered").eq(3).html(" ");
		$(".select2-selection__rendered").eq(4).attr("title"," ");
		$(".select2-selection__rendered").eq(4).html(" ");
		$(".briefing").text(object.informationProfile);//简介
		$(".basic").text(object.standard);//标准
		$(".step").text(object.mesure);//措施
		$(".cont").text(object.informationConternt);//内容
	
		file=object.appendix;
		if(file==null||file=="[]"){
			
		}else{
			file=JSON.parse(file);
			var appendix=object.appendix.substring(1,object.appendix.length-1);
			appendix=appendix.split(",");
			YuXi.appendix.get(appendix);
		}

	}

})
